home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Education
/
World of Education.iso
/
world_a
/
abc420.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-20
|
5KB
|
228 lines
ECHO OFF
CLS
ECHO.
ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ECHO.
ECHO A B C F U N K E Y S I N S T A L L A T I O N
ECHO.
ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ECHO.
IF "%1" == "" GOTO INSTRUCT
IF "%2" == "" GOTO INSTRUCT
IF "%3" == "FLOPPY" GOTO FLOPINST
IF "%3" == "floppy" GOTO FLOPINST
REM * * * * * * * * * * * * * * * * * * * * HARD DISK INSTALLATION
%1
ECHO.
ECHO.
ECHO Installing ABC from %1 to %2
ECHO.
ASK YN Is this correct and do you want to continue? (Y/N)??
IF ERRORLEVEL 2 GOTO EXIT
ECHO.
ECHO.
ECHO Making %2 subdirectory, if it doesn't already exist...
MD %2
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Copying ABC.EXE...
COPY %1ABC.EXE %2
ECHO.
ECHO Copying ABC.CFG configuration file...
COPY %1ABC.CFG %2
ECHO.
ECHO Copying *.SCR files...
COPY %1*.SCR %2
ECHO.
ECHO Copying MUSIC.SNG file...
COPY %1MUSIC.SNG %2
ECHO.
IF EXIST %1A.SPF GOTO HSHARE
IF EXIST %1ABC_PICS.EXE GOTO HREGIST
ECHO.
ECHO Sorry. Picture files have not been found. Aborting installation.
ECHO.
GOTO EXIT
:HSHARE
ECHO Copying REGISTER.DOC file...
COPY %1REGISTER.DOC %2
ECHO.
ECHO Copying ABC Picture files (*.SPF) ...
COPY %1*.SPF %2
ECHO.
ECHO Copying ABC Documentation file...
COPY %1ABC.DOC %2
GOTO SUCCESS
:HREGIST
ECHO.
ECHO Setting up to expand the ABC_PICS file...
%2\
CD %2
ECHO.
ECHO Expanding the ABC Picture files (*.SPF) ...
%1ABC_PICS
ECHO.
%1
ECHO.
ECHO Copying the ABC Documentation file...
COPY %1ABC.DOC %2
GOTO SUCCESS
REM * * * * * * * * * * * * * * * * * * * FLOPPY DISK INSTALLATION
:FLOPINST
%1
ECHO.
IF NOT EXIST %1A.SPF GOTO FCONT
ECHO.
ECHO This ABC diskette has been pre-installed and can be used as it is.
ECHO Please use DISKCOPY to make a backup copy of the disk before
ECHO running the program.
ECHO.
ECHO If you wish, you can continue the installation process to make a
ECHO backup of the ABC program onto a blank, formatted diskette.
ECHO.
ASK YN Do you wish to continue with the installation? (Y/N)??
IF ERRORLEVEL 2 GOTO EXIT
:FCONT
ECHO.
ECHO.
ECHO Installing ABC from %1 to %2 FLOPPY DISK!
ECHO.
ECHO If you only have one disk drive, this will require many diskette swaps.
ASK YN Is this correct and do you want to continue? (Y/N)??
IF ERRORLEVEL 2 GOTO EXIT
ECHO.
ECHO.
ECHO Copying ABC.EXE...
COPY %1ABC.EXE %2
ECHO.
ECHO Copying ABC.CFG configuration file...
COPY %1ABC.CFG %2
ECHO.
ECHO Copying *.SCR files...
COPY %1*.SCR %2
ECHO.
ECHO Copying MUSIC.SNG file...
COPY %1MUSIC.SNG %2
ECHO.
IF EXIST %1A.SPF GOTO FSHARE
IF EXIST %1ABC_PICS.EXE GOTO FREGIST
ECHO.
ECHO Sorry. Picture files have not been found. Aborting installation.
ECHO.
GOTO EXIT
:FSHARE
ECHO Copying REGISTER.DOC file...
COPY %1REGISTER.DOC %2
ECHO.
ECHO Copying ABC Picture files (*.SPF) ...
COPY %1*.SPF %2
ECHO.
ECHO Copying ABC Documentation file...
COPY %1ABC.DOC %2
GOTO SUCCESS
:FREGIST
ECHO.
ECHO Setting up to expand the ABC_PICS file...
%2\
CD %2
ECHO.
ECHO Expanding the ABC Picture files (*.SPF) ...
%1ABC_PICS
ECHO.
%1
ECHO.
GOTO SUCCESS
:SUCCESS
CLS
ECHO.
ECHO.
ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ECHO.
ECHO Installation of ABC Fun Keys to %2 was successful!
ECHO.
ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
:SUCCESS2
ECHO.
ECHO.
ECHO At this time, you can:
ECHO BROWSE the ABC Documentation,
ECHO PRINT the ABC Documentation, or
ECHO QUIT and return to DOS.
ECHO.
ASK QPB Do you want to Browse, Print, or Quit? (B/P/Q)??
IF ERRORLEVEL 3 GOTO BROWSEIT
IF ERRORLEVEL 2 GOTO PRINTIT
CLS
ECHO.
ECHO.
ECHO For future reference:
ECHO You can print the ABC documentation by typing:
ECHO COPY %1ABC.DOC PRN
ECHO.
ECHO You can browse the ABC documentation by typing:
ECHO %1BROWSE %1ABC.DOC
ECHO.
ECHO.
ECHO At this time, you can change to %2 and
ECHO start the ABC program by typing: ABC [Enter]
ECHO.
ECHO.
GOTO EXIT
:BROWSEIT
ECHO.
ECHO.
%1BROWSE %1ABC.DOC
CLS
GOTO SUCCESS2
:PRINTIT
ECHO.
ECHO.
ECHO The ABC Documentation consists of 25 pages.
ECHO.
ASK YN Is your Printer Ready on LPT1 and do you want to continue? (Y/N)??
IF ERRORLEVEL 2 GOTO PRINTIT2
ECHO.
ECHO.
COPY %1ABC.DOC LPT1
:PRINTIT2
CLS
GOTO SUCCESS2
:INSTRUCT
CLS
ECHO.
ECHO Installation Syntax Error. INSTALL must be started with
ECHO the following syntax:
ECHO.
ECHO d:INSTALL [source_drive] [destination_drive\path] [FLOPPY]
ECHO.
ECHO Where: d: is the drive that contains the install disk.
ECHO FLOPPY is a keyword to allow installation to a floppy.
ECHO.
ECHO.
ECHO For example,
ECHO A:INSTALL A: B: FLOPPY
ECHO installs ABC from the A floppy to the B floppy.
ECHO.
ECHO A:INSTALL A: C:\GAMES\ABC
ECHO installs ABC from the A floppy to the C:\GAMES\ABC directory.
ECHO.
ECHO.
:EXIT
ECHO.
ECHO.